<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no"/>
<title>{$praiseContent['title']}</title>

<css href="/Public/css/maint.css" />
<css href="/Public/css/font.css" />
<link rel="stylesheet" href="/Public/css/gyBase.css">
<script  src="/Public/js/jquery-1.7.1.min.js" ></script>
<script src="/Public/js/banner.js" type="text/javascript"></script>

<script  src="/Public/js/jquery.masonry.min.js" ></script>

<script  src="/Public/js/common.js" ></script>
<style type="text/css">
	.item img {
		padding-top: 30px;
	}
	input{
		background:none;
		border:none;
	}
</style>
</head>	
<body style="background-color:#eee;">
<include file="Tpl/header" />
<div id="wrapper">
<div id="main">
	<div class="activeTitles">
		<ul class="ulactTitle"> <!-- TODO: not good, cause html rendering uneffective, should use real tab -->
			<?php
				if(empty($info)){
					echo '<li class="on" style="width: 100%"><span>人气榜</span></li>';
				}else{
					$link = json_decode($info, true);
					if(empty($link['desc'])){
						echo '<li class="on" style="width: 100%"><span>人气榜</span></li>';
					}else{
						echo '<li class="bor0" ><a href="/Wap/Praise/index/praise/'
						. $praise . '"><span>人气榜</span></a></li><li class="on"><span>活动说明</span></li>';
					}
				}
			?>
        </ul>
    </div>
	<div class="actdes">
		<div class="actdesContail">
			<?php
				if(empty($info)){
					echo '';
				}else{
					$link = json_decode($info, true);
					if(empty($link['desc'])){
						echo '';
					}else{
						echo $link['desc'];
					}
				}
			?>
		</div>
	</div>
</div>
</div>
<include file="Tpl/footer" praise="{$praise}"/>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
	wx.config({
		debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
		appId: '{$wxuser["appid"]}', // 必填，公众号的唯一标识
		timestamp: "{$timestamp}", // 必填，生成签名的时间戳
		nonceStr: '{$nonceStr}', // 必填，生成签名的随机串
		signature: '{$wxSha1}',// 必填，签名，见附录1
		jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
	});
	wx.error(function(res){
		console.log(res);
		// config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
	});
	wx.ready( function( e ){
		wx.onMenuShareAppMessage({
			title: "{$share_title}",
			desc: "{$share_desc}",
			link: location.protocol + "//" + window.location.hostname + "/index.php?m=wap&c=praise&a=index&praise={$praise}",
			imgUrl: "{$share_pic}",
			type: 'link',
			dataUrl: '',
			success: function () {
			},
			complete: function () {
			},
			cancel: function () {
			},
			fail: function(){
			},
			trigger: function(){
			}
		});
		wx.onMenuShareTimeline({
			title: "{$share_title}",
			link: location.protocol + "//" + window.location.hostname + "/index.php?m=wap&c=praise&a=index&praise={$praise}",
			imgUrl: "{$share_pic}",
			success: function () {
			},
			complete: function () {
			},
			cancel: function () {
			},
			fail: function(){
			},
			trigger: function(){
			}
		});
	});
</script>
<script type="text/javascript" src="/Public/js/jquery.slides.js"></script>

</body>

</html>